package com.dragon.app.commons.constant;

/**
 * 第三方接口返回错误码常量
 * @author tangpw
 *
 */
public enum ThirdResponseConstant {
	
	SUCCESS(100000,"请求成功，结果不为null"),
	NODATA(100010,"请求成功，结果为null"),
	DATABASE_ERROR(100020,"数据存库失败"),
    REQ_ERROR(200000,"请求失败");
	
	
    private int code;
    private String msg;

    private ThirdResponseConstant(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }
}
